# -*- coding: utf-8 -*-
from django.conf.urls import url

from rest_framework.routers import DefaultRouter
from rest_framework.authtoken.views import obtain_auth_token

from . import views

router = DefaultRouter()
router.register(r'sprint', views.SprintViewSet)
router.register(r'task', views.TaskViewSet)
router.register(r'user', views.UserViewSet)

urlpatterns = [
    url(r'^token/', obtain_auth_token, name='api-token'),
] + router.urls
